<template>
  <el-form-item label="数据间隔">
    <el-radio-group style="height:48px;display:flex;align-items:center" v-model="option" :change='optionChange'>
      <el-radio style="margin-bottom:0" :label="'day'">日</el-radio>
      <el-radio style="margin-bottom:0" :label="'month'">月</el-radio>
      <el-radio style="margin-bottom:0" :label="'year'">年</el-radio>
    </el-radio-group>
  </el-form-item>
</template>

<script>
import moment from 'moment'
export default {
  props: ['config'],
  data() {
    return {
      option: 'day'
    }
  },
  methods: {
    optionChange(val) {
      // this.config.handleChange(val)
      // this.$emit('')
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
